package com.scpii.universal.dispatch.tools;

import java.util.HashMap;
import java.util.Map;

import com.scpii.universal.dispatch.Const.DispathConfig;

/**
 * 图片下载管理
 * 
 * @author chenxin
 */
public class PicDownloadMgr {
	private static Map<Integer, PicDownloadHandler> handlerMap = new HashMap<Integer, PicDownloadHandler>();

	static {
		handlerMap.put(Integer.valueOf(DispathConfig.ANDROID_APP_OS_TYPE),
				new AndroidPicDownloadHandler());
		handlerMap.put(Integer.valueOf(DispathConfig.IOS_APP_OS_TYPE),
				new IosPicDownloadHandler());
	}

	public static PicDownloadHandler getDownLoadHandler(Integer osType) {
		return PicDownloadMgr.handlerMap.get(osType);
	}
}
